<?php 
/**
 * 
 * 夜店 处理类
 * @author tanzhe
 *
 */
class club {
	
	public function enter() { //进入夜店
		$url = new Url();
	  	$key = $url->get('key');
	  	$label = $url->get('label');
	  	$type = $url->get('type');
		$clubModel = new ClubModel(); 
		$ret = $clubModel->enter($key, $label, $type);
		
		$callback = $url->get('jsonpcallback');
		Json::do_jsonp_encode($callback,$ret);
	}
	
	public function flirt() { //调情
		$url = new Url();
	  	$key = $url->get('key');
	  	$label = $url->get('label');
	  	$type = $url->get('type');
	  	$boy = $url->get('boy');
	  	$item = $url->get('item');
		$clubModel = new ClubModel(); 
		$ret = $clubModel->flirt($key, $label, $type, $boy, $item);
		
		$callback = $url->get('jsonpcallback');
		Json::do_jsonp_encode($callback,$ret);
	}	
	
}
?>